#! /usr/bin/python
# coding: utf-8

from Tkinter import *

dirt = ['bottom', 'top', 'right', 'left', 'center']

root = Tk()

for dt in dirt:
    Button(root, text = dt, compound = dt, bitmap = "error").pack()

root.mainloop()
